/**
 * Created by chaoshen on 2017/2/27.
 */
import { Component } from '@angular/core';

@Component({
	selector: 'my-app',
	template: `
				<div>
				  <input type="radio" name="colors" (click)="color='lightgreen'">Green
				  <input type="radio" name="colors" (click)="color='yellow'">Yellow
				  <input type="radio" name="colors" (click)="color='cyan'">Cyan
				</div>
				<!--这里的 color 是作为数据的源，即变量使用，如果是一个直接量需要用单引号括起来[myHighlight]="'orange'"-->
				<p [myHighlight]="color" [defaultColor]="'orange'">我在学习指令</p>
			`
})

export class AppComponent{

}